Vi Vim
Isthereasimplerwaytodothisforclearingafile?OnanormaltexteditorInormallywoulddoCmd-Aandthenstarttyping.,PressEsccometocommandmodepressventervisualmodeShift+gselectseverythingfromcurrentpositiontoEOFDELdeleteselected.,Invido:1,$dtodeletealllines.Th...。參考影片的文章的如下: